package com.tml.entry;

import com.baomidou.mybatisplus.annotation.TableField;

import java.util.Date;

/**
 * 实体类  对应  表
 * SmbmsUser类 对应 smbms_user
 * 类中的属性id 应表中字段  id
 */
public class SmbmsUser {
    //数据库中的bigint 类型对应java Long
    private Long id;
    //数据库中的varchar 类型对应java String
    @TableField("userCode")
    private String userCode;
    @TableField("userName")
    private String userName;
    @TableField("userPassword")
    private String userPassword;
    //数据库中的int 类型对应java Integer
    @TableField("gender")
    private Integer gender;
    //数据库中的date 类型对应java java.util.Date
    @TableField("birthday")
    private Date  birthday;
    @TableField("phone")
    private String phone;
    @TableField("address")
    private String address;
    @TableField("userRole")
    private Integer userRole;
    @TableField("createdBy")
    private Long createdBy;
    @TableField("creationDate")
    private Date creationDate;
    @TableField("modifyBy")
    private Long modifyBy;
    @TableField("modifyDate")
    private Date modifyDate;

    //alt+ins
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getUserRole() {
        return userRole;
    }

    public void setUserRole(Integer userRole) {
        this.userRole = userRole;
    }

    public Long getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(Long createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreationDate() {
        return creationDate;
    }

    public void setCreationDate(Date creationDate) {
        this.creationDate = creationDate;
    }

    public Long getModifyBy() {
        return modifyBy;
    }

    public void setModifyBy(Long modifyBy) {
        this.modifyBy = modifyBy;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    //alt+ins

    @Override
    public String toString() {
        return "SmbmsUser{" +
                "id=" + id +
                ", userCode='" + userCode + '\'' +
                ", userName='" + userName + '\'' +
                ", userPassword='" + userPassword + '\'' +
                ", gender=" + gender +
                ", birthday=" + birthday +
                ", phone='" + phone + '\'' +
                ", address='" + address + '\'' +
                ", userRole=" + userRole +
                ", createdBy=" + createdBy +
                ", creationDate=" + creationDate +
                ", modifyBy=" + modifyBy +
                ", modifyDate=" + modifyDate +
                '}';
    }
}
